package com.changgou.goods.service;


import com.changgou.goods.pojo.Album;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @author BAO
 * @version V1.0
 * @Package com.changgou.goods.service
 * @date 2020/12/7 11:55
 * @description:
 */
public interface AlbumService {

    List<Album> findAll();

    Album findById(Integer albumId);

    int save(Album album);

    int updateById(Album album);

    int deleteById(Integer albumId);

    List<Album> findCondition(Map<String ,Object> searchMap);

    Page<Album> findByPage(int currentPage, int size);

    Page<Album> findByPageAndCondition(Map<String ,Object> searchMap, int currentPage, int size);
}
